package com.boat.starter.mockit.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import io.swagger.v3.oas.annotations.Operation;

/**
 * mock方法配置
 * @author 周江
 *
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@RequestMapping(method = RequestMethod.POST)
@Operation
public @interface MockMapping {
	/**
	 * Alias for {@link Operation#summary}.
	 */
	@AliasFor(annotation = Operation.class, attribute = "summary")
    String name() default "";
    
	/**
	 * Alias for {@link RequestMapping#value}.
	 */
	@AliasFor(annotation = RequestMapping.class, attribute = "value")
	String[] path() default {};
}
